import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const USER: AppRouteRecordRaw = {
	path: '/user',
	name: 'user',
	component: DEFAULT_LAYOUT,
	meta: {
		locale: '用户管理',
		ignoreCache: true,
		requiresAuth: true,
		icon: 'icon-user-group',
		order: 1,
		roles: 'sys:user',
	},
	children: [{
			path: 'teacher',
			name: 'teacher',
			component: () =>
				import('@/views/user/index.vue'),
			meta: {
				locale: '用户管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:teacher',
			},
		},
		{
			path: 'student',
			name: 'student',
			component: () =>
				import('@/views/user/student.vue'),
			meta: {
				locale: '学生管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:student',
			},
		},
		{
			path: 'dept',
			name: 'dept',
			component: () =>
				import('@/views/system/dept/index.vue'),
			meta: {
				locale: '部门管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:dept',
			},
		},
		
	],
};

export default USER;